﻿using System;
using System.Collections.Generic;
using System.Text;
using TL_Cloud.Core.Services;
using TL_Cloud.Models.BookShop;

namespace TL_Cloud.ViewModels.BookShop.BaseSubject
{
  public  class BaseSubjectPropertyMapping : PropertyMapping<BaseSubjectResource, Base_SubjectInfo>
    {
        public BaseSubjectPropertyMapping() : base(
            new Dictionary<string, List<MappedProperty>>(StringComparer.OrdinalIgnoreCase)
            {
                [nameof(BaseSubjectResource.SubjectId)] = new List<MappedProperty>
                {
                    new MappedProperty{ Name=nameof(Base_SubjectInfo.SubjectId),Revert=false }
                },
                [nameof(BaseSubjectResource.SubjectName)] = new List<MappedProperty>
                {
                    new MappedProperty{ Name=nameof(Base_SubjectInfo.SubjectName),Revert=false }
                },
                [nameof(BaseSubjectResource.GradeId)] = new List<MappedProperty>
                {
                    new MappedProperty{ Name=nameof(Base_SubjectInfo.GradeId),Revert=false }
                },
                [nameof(BaseSubjectResource.Sort)] = new List<MappedProperty>
                {
                    new MappedProperty{ Name=nameof(Base_SubjectInfo.Sort),Revert=false }
                },
            })
        {
        }
    }
}
